package top.codedance.iotp.client.net.handler;

import cd.io.netty.channel.ChannelHandlerContext;

public interface HttpMsgHandler {
    void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception;

    // 有新客户端连接
    void handlerAdded(ChannelHandlerContext ctx) throws Exception;

    // 有客户端退出
    void handlerRemoved(ChannelHandlerContext ctx) throws Exception;

    // 有客户端出现异常
    void exceptionCaught(ChannelHandlerContext ctx, Throwable cause);
}
